﻿<%@ Page Language="C#" MasterPageFile="~/Views/Compartido/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<CinePlancito.Dominio.Sala>>" %>



<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

     <h2>LISTADO DE SALAS</h2>
    <table>
        <tr>
            <th class="style15" colspan="3"></th>
   
            <th style="color: #0000FF; font-style: italic; font-weight: bold" 
                class="style14">
                Codigo
            </th>
            <th class="style13" 
                style="color: #0000FF; font-style: italic; font-weight: bold">
                Nombre
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <a href="<%= Url.Action("EditarSala",new { id = item.IdSala }) %>"> 
                <img alt="Editar" src="<%= Url.Content("../../Imagenes/application_form_edit.png") %>"  title="Editar" /></a> 
            </td>
            <td>
                <a href="<%= Url.Action("DetallesSala",new { id = item.IdSala }) %>"> 
                <img alt="Detalles" src="<%= Url.Content("../../Imagenes/zoom.png") %>"  title="Detalle" /></a> 
            </td>
            <td class="style11">
                <a href="<%= Url.Action("EliminarSala",new { id = item.IdSala }) %>"> 
                <img alt="Eliminar" 
                    src="<%= Url.Content("../../Imagenes/button_cancel.gif") %>" title="Eliminar" /></a> 
            </td>

            <td class="style10">
                <%: item.IdSala%>
            </td>
            <td class="style9">
                <%: item.Nombre %>
            </td>
        </tr>
    
    <% } %>

        <tr>
            <td colspan="4">
                 <%: Html.ActionLink("Registrar", "RegistrarSala") %></td>
            <td class="style9">
                [ <a href="~/Cineplancito/MenuPrincipal" ID="HeadLoginStatus" runat="server">Menu Principal</a> ]
                &nbsp;</td>
        </tr>
    
    </table>



</asp:Content>

<asp:Content ID="Content3" runat="server" contentplaceholderid="HeadContent">
    <style type="text/css">
        .style8
        {
            width: 356px;
        }
        .style9
        {
            width: 288px;
        }
        .style10
        {
            width: 54px;
        }
        .style11
        {
            width: 35px;
        }
        .style12
        {
            width: 356px;
            background-color: #E1E9F2;
        }
        .style13
        {
            width: 288px;
            background-color: #E1E9F2;
        }
        .style14
        {
            width: 54px;
            background-color: #E1E9F2;
        }
        .style15
        {
            background-color: #E1E9F2;
        }
    </style>
</asp:Content>


